home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / SPHERES.ZIP / TSCRNSAV.H < prev   
C/C++ Source or Header  |  1993-06-25  |  2KB  |  59 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2. //
  3. // tscrnsav.h
  4.  
  5. #ifndef  __TSCRNSAV_H
  6. #define  __TSCRNSAV_H
  7.  
  8. #ifndef  __OWL_H
  9. #include <owl.h>
  10. #endif
  11.  
  12. #define  WM_SAVESCREEN   ( WM_USER + 500 )
  13.  
  14.  
  15. _CLASSDEF( TScrnSavWindow )
  16. class TScrnSavWindow : public TWindow
  17. {
  18.         POINT   prevPt;
  19.     public:
  20.         TScrnSavWindow( PTWindowsObject AParent, LPSTR ATitle,
  21.                         PTModule AModule = NULL );
  22.        ~TScrnSavWindow();
  23.         virtual LPSTR GetClassName(){ return "WindowsScreenSaverClass"; }
  24.         virtual void GetWindowClass( WNDCLASS & AWndClass );
  25.         virtual void SetupWindow( void );
  26.         virtual void DefWndProc( RTMessage );
  27.         virtual void WMSysCommand( RTMessage ) = [ WM_FIRST + WM_SYSCOMMAND ];
  28.         virtual void AnimateScreen();
  29. };
  30.  
  31.  
  32.  
  33.  
  34.  
  35. _CLASSDEF( TScrnSavApp )
  36. class TScrnSavApp : public TApplication
  37. {
  38.     private:
  39.         int     j;
  40.         virtual void InitMainWindow();
  41.     protected:
  42.         BOOL     fConfigureFlag;
  43.         PTDialog pConfigureDialog;
  44.         PTScrnSavWindow pScrnSavWnd;
  45.     public:
  46.         TScrnSavApp( LPSTR AName, HINSTANCE AnInstance,
  47.                      HINSTANCE APrevInstance,
  48.                      LPSTR ACmdLine, int ACmdShow ) :
  49.         TApplication( AName, AnInstance, APrevInstance, ACmdLine, ACmdShow )
  50.         {
  51.             pScrnSavWnd = NULL;
  52.             pConfigureDialog = NULL;
  53.         }
  54.         virtual void IdleAction();
  55.         virtual void InitScrnSavWindow();
  56.         virtual void InitConfigDialog(){};
  57. };
  58. #endif // __TSCRNSAV_H
  59.